import request from '@/utils/request'

// 查询预案库列表
export function listPlan(query) {
  return request({
    url: '/system/Plan/list',
    method: 'get',
    params: query
  })
}
// 查询预案库列表
export function selectPlanList(query) {
  return request({
    url: '/system/Plan/selectPlanList',
    method: 'get',
    params: query
  })
}


// 查询预案库详细
export function getPlan(id) {
  return request({
    url: '/system/Plan/' + id,
    method: 'get'
  })
}

// 新增预案库
export function addPlan(data) {
  return request({
    url: '/system/Plan',
    method: 'post',
    data: data
  })
}

// 修改预案库
export function updatePlan(data) {
  return request({
    url: '/system/Plan',
    method: 'put',
    data: data
  })
}

// 删除预案库
export function delPlan(id) {
  return request({
    url: '/system/Plan/' + id,
    method: 'delete'
  })
}

// 查询预案库列表
export function selectMaterialPlanList(query) {
  return request({
    url: '/system/materialPlan/list',
    method: 'get',
    params: query
  })
}
// 查询预案库列表
export function selectALLMaterialList() {
  return request({
    url: '/system/material/selectAllList',
    method: 'get',
  })
}
// 根据预案查物资
export function selectMaterial(query) {
  return request({
    url: '/system/materialPlan/selectMaterial',
    method: 'get',
    params: query
  })
}



